<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>{{appName}}看线 - A股技术分析与AI预测工具</title>
    <link rel="stylesheet" href="{{ url_for('static', filename='bootstrap.min.css') }}">
    <link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
</head>
<body>
    <div class="container-fluid">
        <!-- 列表 -->
        <header class="p-3 mb-4 bg-primary text-white">
            <div class="container">
                <div class="d-flex align-items-center justify-content-between">
                    <h1 class="mb-0">{{appName}}看线</h1>
                    <p class="mb-0">人气股批量分析（时间很长，请耐心等待）</p>
                </div>
            </div>
        </header>
        <!-- 根据stocks渲染列表 -->
        <table class="table table-striped">
            <thead>
                <tr>
                    <th>当前排名</th>
                    <th>股票代码</th>
                    <th>股票名称</th>
                    <th>最新价格</th>
                    <th>涨跌幅</th>
                    <th>预估下周上涨概率</th>
                    <th>分析详情</th>
                </tr>
            </thead>
            <tbody>
                {% for stock in stocks %}
                <tr>
                    <td>{{ stock.rank }}</td>
                    <td>{{ stock.code }}</td>
                    <td>{{ stock.name }}</td>
                    <td>{{ stock.latest_price }}</td>
                    <td>{{ stock.price_change }}</td>
                    <td>{{ stock.predicted_rise_probability }}</td>
                    <td>
                        <button class="btn btn-primary" onclick="analyzeStock('{{ stock.code }}')">详情</button>
                    </td>
                </tr>
                {% endfor %}
            </tbody>
        </table>


        <footer class="mt-5 p-3 bg-light text-center">
            <div class="container">
                <p class="mb-0">© 2025 AI看线 - A股技术分析与AI预测工具</p>
                <p class="mb-0 small text-muted">免责声明：本工具提供的分析和预测仅供参考，不构成任何投资建议。投资有风险，入市需谨慎。</p>
            </div>
        </footer>
    </div>

    <script src="{{ url_for('static', filename='html2canvas.min.js') }}"></script>
    <script src="{{ url_for('static', filename='bootstrap.bundle.min.js') }}"></script>
    <script src="{{ url_for('static', filename='axios.min.js') }}"></script>
    <script src="{{ url_for('static', filename='js/batchAnalysis.js') }}"></script>
</body>
</html> 